package com.primb.bench.project.home.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Chen on 2017/7/27.
 * 功能描述：
 */

public class HttpResultEntity {

    /**
     * success : true
     * msg :
     * data : {"lncFtpRate":"0.0315","lncFeeRate":"0.004075","lncFeeBdRate":"0.002367","depFee":"0.002543","dppBdFee":"0.001262","lncPd":"0","lncLgd":"0.45","lncEcPara":"0.0975","lncLowCapRet":"0.0825","lncVat":"0.06","lnIncomeTax":"0.25","lncPrdTarRet":"0.004133","capCostRate":"0.00804375","elRate":"0.0","lnpCostRate":"0.051961","lnpCostBdRate":"0.048781","lnpTargetRate":"0.056094","lnpCustRate":"0.056094","lnpMarketIr":"0.071744","lnDiscountValue":"0.0","lncScoreUse":"0","lncScoreleft":"0.0","custId":"1000000001","custName":"李德威","date":"20170915"}
     */

    private boolean success;
    private String msg;
    private DataBean data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        /**
         "lncFtpRate": "0.0435",        资金成本率
         "lncFeeRate": "0.004075",      全成本费用率
         "lncFeeBdRate": "0.002367",    变动成本费用率
         "depFee": "0.002543",          存款成本费用率
         "dppBdFee": "0.001262",        存款成本变动费用率
         "lncPd": "0.0000",             违约概率
         "lncLgd": "0.45",              违约损失率
         "lncEcPara": "0.0975",         贷款资本占用率函数
         "lncLowCapRet": "0.0825",      最低资本回报率
         "lncVat": "0.06",              增值税
         "lnIncomeTax": "0.25",         所得税
         "lncPrdTarRet": "0.004133",    产品目标回报率
         "capCostRate": "0.00804375",   资本成本率
         "elRate": "0.0",               预期损失率
         "lnpCostRate": "0.064727",     全成本利率
         "lnpCostBdRate": "0.061547",   变动成本利率
         "lnpTargetRate": "0.06886",    目标利率
         "lnpCustRate": "0.06886",      指导利率
         "lnpMarketIr": "0.069367",     市场参考利率
         "lnDiscountValue": "0.0",      客户贡献点实际调节
         "lncScoreUse": "0",            实际使用的客户贡献点
         "lncScoreleft": "0.351",       实际剩余客户贡献点
         "custId": "1000832481",
         "custName": "肖大秋",
         "date": "20170918"
         */

        private String lncFtpRate;
        private String lncFeeRate;
        private String lncFeeBdRate;
        private String depFee;
        private String dppBdFee;
        private String lncPd;
        private String lncLgd;
        private String lncEcPara;
        private String lncLowCapRet;
        private String lncVat;
        private String lnIncomeTax;
        private String lncPrdTarRet;
        private String capCostRate;
        private String elRate;
        private String lnpCostRate;
        private String lnpCostBdRate;
        private String lnpTargetRate;
        private String lnpCustRate;
        private String lnpMarketIr;
        private String lnDiscountValue;
        private String lncScoreUse;
        private String lncScoreleft;
        private String custId;
        private String custName;
        private String date;
        private boolean isCompletion;

        public boolean isCompletion() {
            return isCompletion;
        }

        public void setCompletion(boolean completion) {
            isCompletion = completion;
        }

        public String getLncFtpRate() {
            return lncFtpRate;
        }

        public void setLncFtpRate(String lncFtpRate) {
            this.lncFtpRate = lncFtpRate;
        }

        public String getLncFeeRate() {
            return lncFeeRate;
        }

        public void setLncFeeRate(String lncFeeRate) {
            this.lncFeeRate = lncFeeRate;
        }

        public String getLncFeeBdRate() {
            return lncFeeBdRate;
        }

        public void setLncFeeBdRate(String lncFeeBdRate) {
            this.lncFeeBdRate = lncFeeBdRate;
        }

        public String getDepFee() {
            return depFee;
        }

        public void setDepFee(String depFee) {
            this.depFee = depFee;
        }

        public String getDppBdFee() {
            return dppBdFee;
        }

        public void setDppBdFee(String dppBdFee) {
            this.dppBdFee = dppBdFee;
        }

        public String getLncPd() {
            return lncPd;
        }

        public void setLncPd(String lncPd) {
            this.lncPd = lncPd;
        }

        public String getLncLgd() {
            return lncLgd;
        }

        public void setLncLgd(String lncLgd) {
            this.lncLgd = lncLgd;
        }

        public String getLncEcPara() {
            return lncEcPara;
        }

        public void setLncEcPara(String lncEcPara) {
            this.lncEcPara = lncEcPara;
        }

        public String getLncLowCapRet() {
            return lncLowCapRet;
        }

        public void setLncLowCapRet(String lncLowCapRet) {
            this.lncLowCapRet = lncLowCapRet;
        }

        public String getLncVat() {
            return lncVat;
        }

        public void setLncVat(String lncVat) {
            this.lncVat = lncVat;
        }

        public String getLnIncomeTax() {
            return lnIncomeTax;
        }

        public void setLnIncomeTax(String lnIncomeTax) {
            this.lnIncomeTax = lnIncomeTax;
        }

        public String getLncPrdTarRet() {
            return lncPrdTarRet;
        }

        public void setLncPrdTarRet(String lncPrdTarRet) {
            this.lncPrdTarRet = lncPrdTarRet;
        }

        public String getCapCostRate() {
            return capCostRate;
        }

        public void setCapCostRate(String capCostRate) {
            this.capCostRate = capCostRate;
        }

        public String getElRate() {
            return elRate;
        }

        public void setElRate(String elRate) {
            this.elRate = elRate;
        }

        public String getLnpCostRate() {
            return lnpCostRate;
        }

        public void setLnpCostRate(String lnpCostRate) {
            this.lnpCostRate = lnpCostRate;
        }

        public String getLnpCostBdRate() {
            return lnpCostBdRate;
        }

        public void setLnpCostBdRate(String lnpCostBdRate) {
            this.lnpCostBdRate = lnpCostBdRate;
        }

        public String getLnpTargetRate() {
            return lnpTargetRate;
        }

        public void setLnpTargetRate(String lnpTargetRate) {
            this.lnpTargetRate = lnpTargetRate;
        }

        public String getLnpCustRate() {
            return lnpCustRate;
        }

        public void setLnpCustRate(String lnpCustRate) {
            this.lnpCustRate = lnpCustRate;
        }

        public String getLnpMarketIr() {
            return lnpMarketIr;
        }

        public void setLnpMarketIr(String lnpMarketIr) {
            this.lnpMarketIr = lnpMarketIr;
        }

        public String getLnDiscountValue() {
            return lnDiscountValue;
        }

        public void setLnDiscountValue(String lnDiscountValue) {
            this.lnDiscountValue = lnDiscountValue;
        }

        public String getLncScoreUse() {
            return lncScoreUse;
        }

        public void setLncScoreUse(String lncScoreUse) {
            this.lncScoreUse = lncScoreUse;
        }

        public String getLncScoreleft() {
            return lncScoreleft;
        }

        public void setLncScoreleft(String lncScoreleft) {
            this.lncScoreleft = lncScoreleft;
        }

        public String getCustId() {
            return custId;
        }

        public void setCustId(String custId) {
            this.custId = custId;
        }

        public String getCustName() {
            return custName;
        }

        public void setCustName(String custName) {
            this.custName = custName;
        }

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public DataBean() {
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.lncFtpRate);
            dest.writeString(this.lncFeeRate);
            dest.writeString(this.lncFeeBdRate);
            dest.writeString(this.depFee);
            dest.writeString(this.dppBdFee);
            dest.writeString(this.lncPd);
            dest.writeString(this.lncLgd);
            dest.writeString(this.lncEcPara);
            dest.writeString(this.lncLowCapRet);
            dest.writeString(this.lncVat);
            dest.writeString(this.lnIncomeTax);
            dest.writeString(this.lncPrdTarRet);
            dest.writeString(this.capCostRate);
            dest.writeString(this.elRate);
            dest.writeString(this.lnpCostRate);
            dest.writeString(this.lnpCostBdRate);
            dest.writeString(this.lnpTargetRate);
            dest.writeString(this.lnpCustRate);
            dest.writeString(this.lnpMarketIr);
            dest.writeString(this.lnDiscountValue);
            dest.writeString(this.lncScoreUse);
            dest.writeString(this.lncScoreleft);
            dest.writeString(this.custId);
            dest.writeString(this.custName);
            dest.writeString(this.date);
            dest.writeByte(this.isCompletion ? (byte) 1 : (byte) 0);
        }

        protected DataBean(Parcel in) {
            this.lncFtpRate = in.readString();
            this.lncFeeRate = in.readString();
            this.lncFeeBdRate = in.readString();
            this.depFee = in.readString();
            this.dppBdFee = in.readString();
            this.lncPd = in.readString();
            this.lncLgd = in.readString();
            this.lncEcPara = in.readString();
            this.lncLowCapRet = in.readString();
            this.lncVat = in.readString();
            this.lnIncomeTax = in.readString();
            this.lncPrdTarRet = in.readString();
            this.capCostRate = in.readString();
            this.elRate = in.readString();
            this.lnpCostRate = in.readString();
            this.lnpCostBdRate = in.readString();
            this.lnpTargetRate = in.readString();
            this.lnpCustRate = in.readString();
            this.lnpMarketIr = in.readString();
            this.lnDiscountValue = in.readString();
            this.lncScoreUse = in.readString();
            this.lncScoreleft = in.readString();
            this.custId = in.readString();
            this.custName = in.readString();
            this.date = in.readString();
            this.isCompletion = in.readByte() != 0;
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
